package com.it.xyx.demo.controller;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import com.it.xyx.demo.service.IOrderService;
import com.it.xyx.demo.entity.Order;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xyx
 * @since 2024-08-22
 */
@RestController
@RequestMapping("/order")
public class OrderController {
    @Resource
    private IOrderService orderService;

    @GetMapping("/order/create")
    public String create(Order order) {
        orderService.create(order);
        return "ok";
    }


}

